    <div data-role="footer" data-position="fixed">
      <div data-role="navbar" class="nav-glyphish">
        <ul>
          <li><a href="index.php" id="hometab" <?php if( $_page == 'index' ) echo 'class="ui-btn-active ui-state-persist"'; ?> data-icon="custom">Inici</a></li>
          <li><a href="additem.php" id="addtab" <?php if( $_page == 'add' ) echo 'class="ui-btn-active ui-state-persist"'; ?> data-icon="custom">Afegir</a></li>
          <li><a href="rank.php" id="ranktab" <?php if( $_page == 'rank' ) echo 'class="ui-btn-active ui-state-persist"'; ?> data-icon="custom">Ranking</a></li>
          <li><a href="points.php" id="pointstab" <?php if( $_page == 'points' ) echo 'class="ui-btn-active ui-state-persist"'; ?> data-icon="custom">Punts</a></li>
          <!-- <li><a href="workshops.php" id="workshopstab" <?php if( $_page == 'workshop' ) echo 'class="ui-btn-active ui-state-persist"'; ?> data-icon="custom">Tallers</a></li>-->
          <li><a href="greenpoints.php" id="greentab" <?php if( $_page == 'greentab' ) echo 'class="ui-btn-active ui-state-persist"'; ?> data-icon="custom">Punts Verds</a></li>
        </ul>
      </div>
    </div>